package link.hwx.service.oa.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import link.hwx.entity.oa.OaBillInfoVo;
import link.hwx.mapper.oa.OaPprCpMapper;
import link.hwx.mapper.oa.OaPurchaseOrderMapper;
import link.hwx.service.oa.OaPprCpService;
import link.hwx.service.oa.OaPurchaseOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DS("OAData")
@Service
public class OaPprCpServiceImpl implements OaPprCpService {

    @Autowired
    private OaPprCpMapper oaPprCpMapper;

    @Override
    public OaBillInfoVo findPprCpByRequestId(String pprCpMainTableName, String requestid) {
        return oaPprCpMapper.findPprCpByRequestId(pprCpMainTableName, requestid);
    }

    @Override
    public int updatePprCpU9DocNoByRequestId(String pprCpMainTableName, String requestid, String srmdocno) {
        return oaPprCpMapper.updatePprCpU9DocNoByRequestId(pprCpMainTableName, requestid, srmdocno);
    }
}
